//
//  XMScrollImageViewController.m
//  XMKit
//
//  Created by chenming on 2018/5/26.
//  Copyright © 2018年 ChenXiaoMing. All rights reserved.
//

#import "XMScrollImageViewController.h"

// View
#import "XMScrollViewImage.h"

@interface XMScrollImageViewController ()

@property (nonatomic, strong) XMScrollViewImage *scrollViewImage;

@end

@implementation XMScrollImageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    NSArray *tempUrlSources = @[
                @"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1527575934198&di=0d5c6e214d18c7eafbad16258849d2b7&imgtype=0&src=http%3A%2F%2Fimg4.duitang.com%2Fuploads%2Fitem%2F201508%2F06%2F20150806235235_u5ETy.jpeg",
                @"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1527575983081&di=a69dc81c06ccff96b7fd33878e51b566&imgtype=0&src=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fitem%2F201601%2F03%2F20160103144734_ucBVd.jpeg",
                @"https://timgsa.baidu.com/timg?image&quality=80&size=b10000_10000&sec=1527566021&di=c963ed165961de069adccc841516df6c&src=http://a1.att.hudong.com/84/20/16300001066597134380205535747.jpg",
                @"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1527576039587&di=6678bf9d3984117217ab600609494d0b&imgtype=0&src=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fitem%2F201508%2F04%2F20150804015126_NcVfz.jpeg",
                @"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1527576071857&di=20102245728d417182e0375e84f0b277&imgtype=0&src=http%3A%2F%2Fa3.topitme.com%2Fa%2Fcf%2Fdd%2F11314604046aaddcfao.jpg",
                ];
    _scrollViewImage = [[XMScrollViewImage alloc] initWithFrame:CGRectMake(0, 100, kSCREENWIDTH, kSCREENWIDTH * 9 / 16)];
    _scrollViewImage.dataUrlSources = tempUrlSources;
    [self.view addSubview:_scrollViewImage];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
